/*
node structure template
created by nobles0ul on 8th nov
all rights reserverd (c) nobles0ul

*/
#include <iostream>
#include <stream>

template<class nodetype> class List;

template<class nodetype>
class ListNode
{
	friend class List<nodetype>
	private:
		nodetype data;
		Listnode<nodetype> *ptr;
	public:
		ListNode(const nodetype &);
		nodetype getdata();
	} ;
	
	template<class t>
	ListNode<t>::ListNode(const Nodetype &info):ptr(0),data(info)
	{
		// empty
	}
template<class t>
nodetype ListNode<t>::getdata() const
{
	return data;
}